<%@page import="support.*, java.util.*" %>
<html>
<head><title>Country of Citizenship Page</title></head>
<body>
<%
session.setAttribute("fullName", request.getAttribute("fullName"));
%>

Welcome <%= session.getAttribute("fullName")%> <p>
Please choose your country of citizenship :
<p>
<% 
   	support s = new support();   	
   	
   	String path1 = config.getServletContext().getRealPath("countries.txt");
  //getCountries returns a vector of the countries to be used for choosing citizenship
    Vector countries = s.getCountries(path1); 
	%>
	<%
for(int i=0; i<countries.size(); i++){
	String cn = (String)countries.get(i);
	%>
	<a href="protected/students/residence.jsp?country=<%=cn%>"><%=countries.get(i)%></a>
	<% out.println(" ");
	if((i+1)%3 == 0)
		out.println("<br>");
}
    out.println("<br>");

%>

<p>

<p>
</body>
</html>
